from rest_framework import serializers
from django.contrib.auth.models import Permission,ContentType

class PermissionViewSerializer(serializers.ModelSerializer):
    class Meta:
        model=Permission
        fields="__all__"


class PermissionContentViewSerializer(serializers.ModelSerializer):
    class Meta:
        model=ContentType
        fields=("id","name")